#from flask_restful import Resource,Api
from flask_restx import Resource,Api

from webargs.flaskparser import use_args
from models import db
from webargs import fields
from resources.record import RecordResource,RecordsResource
from resources.pagination import PaginationResource
from resources.tag import *
from resources.clockin import *
from resources.timetable import *
from resources.tasks import *
api = Api()
api.add_resource(RecordResource,'/record/<int:id>')
api.add_resource(RecordsResource, '/records')
api.add_resource(PaginationResource, '/pagination')
api.add_resource(TagResource,'/tag/<int:id>')
api.add_resource(TagsResource, '/tags')
api.add_resource(ClockinResource,'/clockin/<int:id>')
api.add_resource(ClockinsResource,'/clockins')
api.add_resource(TimetableResource,'/timetable/<int:id>')
api.add_resource(TimetablesResource,'/timetables')
api.add_resource(TaskResource,'/task/<int:id>')
api.add_resource(TasksResource,'/tasks')
